/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package btime.gui;

import btime.logic.Time;

/**
 *
 * @author Jordan
 */
public class TerminalDisplay {

    public TerminalDisplay(){
        
    }

    public void display(Time time){
        System.out.println(":bClock:");
        if (time.getHours().length() != 6){
			for (int i = (time.getHours().length()) ;  i < 6 ; i++){
				System.out.print("0");
			}
			System.out.println(time.getHours());
		}
		else System.out.println(time.getHours());
		// adding 0 to Minutes
                if (time.getMins().length() != 6){
			for (int i = (time.getMins().length()) ;  i < 6 ; i++){
				System.out.print("0");
			}
			System.out.println(time.getMins());
		}
		else System.out.println(time.getMins());
		
                // adding 0 to Seconds 
                // Working representation of 6 digits binary by adding "0" infront of the Binary number String
		if (time.getSecs().length() != 6){
			for (int i = (time.getSecs().length()) ;  i < 6 ; i++){
				System.out.print("0");
			}
			System.out.println(time.getSecs());
		}
		else System.out.println(time.getSecs());
             
          System.out.println("========"); 
    }


}
